package  
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	/**
	 * @author Humberto Anjos
	 */
	public class Bullet extends MovieClip
	{
		private var _speed:int = 5
		private var _state:String
		
		public function Bullet(state:String, x: int, y:int) 
		{
			this.x = x
			this.y = y
			_state = state
			
			gotoAndStop(_state)
		}
		
		public function update() 
		{
			this.y -= _speed
		}
		
		public function get state():String { return _state }
		public function get speed():int { return _speed }
	}

}